<?php
 class Configuration{
  var $confDir;
  var $confValue;
  
  //Class Constructor
  public function Configuration(){
    $this->confValue= array();
  }
  
  //method to Set Directory Of configuration
  function setConfDir($confDir){
    $this->confDir=$confDir;
  }
  //method to Load  Configuration File
  function loadConfFile($confFileName){
    require $this->confDir.$confFileName;
    $this->setValue($conf);
  }
  //method to set value of Configuration
  function setValue($value){
    $this->confValue=$value;
  }
  
  //method to get Configuration value
  function getValue($name=''){
   // print($name);
    if(empty($name))
      return $this->confValue;
    else
      return $this->confValue[$name];
  }
  
}
?>
